Optimal. Leaf size=88 \[ \frac {\frac {a^2}{c^2}-\frac {b^2}{d^2}}{\sqrt {c+d x^2}}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{5/2}}+\frac {(b c-a d)^2}{3 c d^2 \left (c+d x^2\right )^{3/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {446, 87, 63, 208} \begin {gather*} \frac {\frac {a^2}{c^2}-\frac {b^2}{d^2}}{\sqrt {c+d x^2}}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{5/2}}+\frac {(b c-a d)^2}{3 c d^2 \left (c+d x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 87
Rule 208
Rule 446
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2}{x \left (c+d x^2\right )^{5/2}} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {(a+b x)^2}{x (c+d x)^{5/2}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (-\frac {(b c-a d)^2}{c d (c+d x)^{5/2}}+\frac {b^2 c^2-a^2 d^2}{c^2 d (c+d x)^{3/2}}+\frac {a^2}{c^2 x \sqrt {c+d x}}\right ) \, dx,x,x^2\right )\\ &=\frac {(b c-a d)^2}{3 c d^2 \left (c+d x^2\right )^{3/2}}+\frac {\frac {a^2}{c^2}-\frac {b^2}{d^2}}{\sqrt {c+d x^2}}+\frac {a^2 \operatorname {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )}{2 c^2}\\ &=\frac {(b c-a d)^2}{3 c d^2 \left (c+d x^2\right )^{3/2}}+\frac {\frac {a^2}{c^2}-\frac {b^2}{d^2}}{\sqrt {c+d x^2}}+\frac {a^2 \operatorname {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{c^2 d}\\ &=\frac {(b c-a d)^2}{3 c d^2 \left (c+d x^2\right )^{3/2}}+\frac {\frac {a^2}{c^2}-\frac {b^2}{d^2}}{\sqrt {c+d x^2}}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.04, size = 67, normalized size = 0.76 \begin {gather*} \frac {a^2 d^2 \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};\frac {d x^2}{c}+1\right )-b c \left (2 a d+2 b c+3 b d x^2\right )}{3 c d^2 \left (c+d x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.11, size = 99, normalized size = 1.12 \begin {gather*} \frac {4 a^2 c d^2+3 a^2 d^3 x^2-2 a b c^2 d-2 b^2 c^3-3 b^2 c^2 d x^2}{3 c^2 d^2 \left (c+d x^2\right )^{3/2}}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.17, size = 316, normalized size = 3.59 \begin {gather*} \left [\frac {3 \, {\left (a^{2} d^{4} x^{4} + 2 \, a^{2} c d^{3} x^{2} + a^{2} c^{2} d^{2}\right )} \sqrt {c} \log \left (-\frac {d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) - 2 \, {\left (2 \, b^{2} c^{4} + 2 \, a b c^{3} d - 4 \, a^{2} c^{2} d^{2} + 3 \, {\left (b^{2} c^{3} d - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{6 \, {\left (c^{3} d^{4} x^{4} + 2 \, c^{4} d^{3} x^{2} + c^{5} d^{2}\right )}}, \frac {3 \, {\left (a^{2} d^{4} x^{4} + 2 \, a^{2} c d^{3} x^{2} + a^{2} c^{2} d^{2}\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) - {\left (2 \, b^{2} c^{4} + 2 \, a b c^{3} d - 4 \, a^{2} c^{2} d^{2} + 3 \, {\left (b^{2} c^{3} d - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{3 \, {\left (c^{3} d^{4} x^{4} + 2 \, c^{4} d^{3} x^{2} + c^{5} d^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.44, size = 102, normalized size = 1.16 \begin {gather*} \frac {a^{2} \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c} c^{2}} - \frac {3 \, {\left (d x^{2} + c\right )} b^{2} c^{2} - b^{2} c^{3} + 2 \, a b c^{2} d - 3 \, {\left (d x^{2} + c\right )} a^{2} d^{2} - a^{2} c d^{2}}{3 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} c^{2} d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 120, normalized size = 1.36 \begin {gather*} -\frac {b^{2} x^{2}}{\left (d \,x^{2}+c \right )^{\frac {3}{2}} d}+\frac {a^{2}}{3 \left (d \,x^{2}+c \right )^{\frac {3}{2}} c}-\frac {2 a b}{3 \left (d \,x^{2}+c \right )^{\frac {3}{2}} d}-\frac {2 b^{2} c}{3 \left (d \,x^{2}+c \right )^{\frac {3}{2}} d^{2}}-\frac {a^{2} \ln \left (\frac {2 c +2 \sqrt {d \,x^{2}+c}\, \sqrt {c}}{x}\right )}{c^{\frac {5}{2}}}+\frac {a^{2}}{\sqrt {d \,x^{2}+c}\, c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.93, size = 108, normalized size = 1.23 \begin {gather*} -\frac {b^{2} x^{2}}{{\left (d x^{2} + c\right )}^{\frac {3}{2}} d} - \frac {a^{2} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{c^{\frac {5}{2}}} + \frac {a^{2}}{\sqrt {d x^{2} + c} c^{2}} + \frac {a^{2}}{3 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} c} - \frac {2 \, b^{2} c}{3 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} d^{2}} - \frac {2 \, a b}{3 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.80, size = 90, normalized size = 1.02 \begin {gather*} \frac {\frac {a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2}{3\,c}+\frac {\left (a^2\,d^2-b^2\,c^2\right )\,\left (d\,x^2+c\right )}{c^2}}{d^2\,{\left (d\,x^2+c\right )}^{3/2}}-\frac {a^2\,\mathrm {atanh}\left (\frac {\sqrt {d\,x^2+c}}{\sqrt {c}}\right )}{c^{5/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 44.36, size = 87, normalized size = 0.99 \begin {gather*} \frac {a^{2} \operatorname {atan}{\left (\frac {\sqrt {c + d x^{2}}}{\sqrt {- c}} \right )}}{c^{2} \sqrt {- c}} + \frac {\left (a d - b c\right )^{2}}{3 c d^{2} \left (c + d x^{2}\right )^{\frac {3}{2}}} + \frac {\left (a d - b c\right ) \left (a d + b c\right )}{c^{2} d^{2} \sqrt {c + d x^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________